package com.example.customconsume.entity;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

/**
 * @Description 终端上传协议
 * @Author lihw
 * @Date 2024/7/4 10:46
 */
@Data
@Schema(description = "扣费实体类")
public class ConsumeDto {

    @Schema(description = "用户id")
    private Integer userId;

    @Schema(description = "设备流水号")
    private String deviceOrderNo;

    @Schema(description = "交易时间（毫秒）")
    private String tradeTime;

    @Schema(description = "交易金额",required = true)
    private Integer tradeAmt;

    @Schema(description = "设备id",required = true)
    private String deviceId;

    @Schema(description = "场所id")
    private Integer placeId;

    @Schema(description = "菜品id")
    private List<DishDto> dishList;

    @Schema(description = "菜谱id")
    private Long dishMenuId;

    @Schema(description = "交易单位id",required = true)
    private Integer unitTypeId;

    @Schema(description = "商户id",required = true)
    private Long merchantId;

    @Schema(description = "识别介质id")
    private Integer mediaId;

    @Schema(description="物理卡号",required = false)
    private String cardSerial;

    @Schema(description = "交易状态类型： 1=在线交易 2=离线交易 3=冲正")
    private Integer orderScene;

    @Schema(description = "餐别id",required = true)
    private Long mealId;

    @Schema(description = "超限密码 和前端加密方式一致",required = false)
    private String overLimitPwd;

    @Schema(description = "消费模式",required = false)
    private Integer modeId;

    @Schema(description="1.微信2.支付宝")
    private Integer paymentType;

    @Schema(description = "消费机二维码标识")
    private Integer isQr;

    @Schema(description = "是否跨夜")
    private Integer isExceedNight;

//    @Schema(description = "支付方式")
//    private List<Integer> paymentSets;

    @Schema(description = "折扣比例")
    private Integer discountRate = -1;
}
